<h1>客户列表</h1>
<table>
  <tr>
    <th>名称</th>
    <th>联系人</th>
    <th>邮箱</th>
    <th>国家</th>
    <th>电话</th>
    <th>Msn</th>
    <th>地址</th>
    <th>业务员</th>
    <th colspan="3">操作</th>
  </tr>
<% for customer in @customers %>
  <tr>
    <td><%=h customer.customer %></td>
    <td><%=h customer.contact %></td>
    <td><%=h customer.email %></td>
    <td><%=h customer.country %></td>
    <td><%=h customer.tel %></td>
    <td><%=h customer.msn %></td>
    <td><%=h customer.address %></td>
    <td><%=h customer.user %></td>
    <td><%= link_to '查看', customer %></td>
    <td><%= link_to '修改', edit_customer_path(customer) %></td>
    <td><%= link_to '删除', customer, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to '新增', new_customer_path %>
